import * as PIXI from 'pixi.js'
export default (textureSource: PIXI.TextureSource) => {
  const sprite = new PIXI.Sprite(
    new PIXI.Texture({
      source: textureSource,
      frame: new PIXI.Rectangle(989, 1178, 322, 847),
    }),
  )
  sprite.anchor.set(0.5)
  // 衬层于背景中居中
  sprite.scale.set(1.1)
  sprite.position.set(0, 55 / 2 + sprite.height / 2)
  sprite.alpha = 0.7
  return sprite
}
